/*
 * @Description:   
 * @Author: YangJianFei
 * @Date: 2024-10-09 10:58:49
 * @LastEditTime: 2024-10-11 14:29:53
 * @LastEditors: YangJianFei
 * @FilePath: \yt_devop_app\lib\pages\devices\device_controll\component\util.dart
 */

import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:yt_devops/pages/devices/device_controll/component/rate_setting/rate_setting_controller.dart';
import 'package:yt_devops/pages/devices/device_controll/component/rate_setting/rate_setting_view.dart';
import 'package:yt_devops/utils/enums.dart';

class DeviceControllModuleUtil {
  static Widget getCustomComponent({
    required String name,
    required int deviceId,
    ConnectStatusType? connectStatus,
    required bool passEditAuth,
  }) {
    switch (name) {
      case 'RateSetting':
        return RateSetting(
          tag: 'detail',
          deviceId: deviceId,
          connectStatus: connectStatus,
          passEditAuth: passEditAuth,
        );
      default:
        return Container();
    }
  }
}
